import json
data = {
    'name': 'zhen',
    'age': 29,
    'address': '杭州市'
}
out_file = open('myfile.json', 'w')

json.dump(data, out_file, indent = 6)
   
out_file.close()
# import sys
# print(sys.version)